<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@ include file="/store/include/init_store.jsp" %>
<%

	String publisher_id = StringUtil.nvl(request.getParameter("publisher_id"));

	HashMap infos = new HashMap();
	infos.put("publisher_id", publisher_id);
	
	PublisherDAO dao = new PublisherDAO();
	HashList list 	= dao.selectPublisherInfo(infos);
	
	
	String publiser_pw = "";
	if (list.size() == 1) {
		String pw = list.get("publisher_pw", 0);
		for (int i = 0; i < pw.length(); i++) {
			if (i < 2) {
				publiser_pw += pw.charAt(i);
			} else {
				publiser_pw += "*";
			}
		}
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title><%= HOME_NAME %></title>
	<%@ include file="/home/include/cssnjs.jsp"  %>
	<script type="text/javascript">
	$(document).ready(function() {
		
	});

	
	</script>
</head>
<body>
	<div id="wrap">
		<%@ include file="/publisher/include/header.jsp"  %>
		
		<div id="contents">
			<h2>발행자등록 완료</h2>
			<div id="regist_success">
            	
				<h3>축하합니다! 발행자등록이 완료되었습니다.</h3>
				<p><strong>아이디</strong> : <%= publisher_id %>, <strong>비밀번호</strong> : <%=publiser_pw %> </p>
				<a href="./login.jsp" class="btn" title="로그인" >로그인</a>
			</div>
			
             
		</div>
		
		<%@ include file="/publisher/include/footer.jsp"  %>		
	</div>

</body>
</html>
